<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/SlEmail.Web.MailService" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/SlEmail.Web.MailService" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost/advantage5/MailService/NewMailService.svc?xsd=xsd3" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:complexType name="FolderHeaderNumberDetails">
    <xs:sequence>
      <xs:element minOccurs="0" name="FolderCompletePath" nillable="true" type="xs:string" />
      <xs:element xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="HeaderNumbers" nillable="true" type="q1:ArrayOfint" />
      <xs:element minOccurs="0" name="UnreadEmails" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="FolderHeaderNumberDetails" nillable="true" type="tns:FolderHeaderNumberDetails" />
  <xs:complexType name="SearchHeaderNumbersResult">
    <xs:sequence>
      <xs:element minOccurs="0" name="FolderCompletePath" nillable="true" type="xs:string" />
      <xs:element xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="HeaderNumbers" nillable="true" type="q2:ArrayOfint" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SearchHeaderNumbersResult" nillable="true" type="tns:SearchHeaderNumbersResult" />
  <xs:complexType name="AttachmentDownloadUrlResult">
    <xs:sequence>
      <xs:element minOccurs="0" name="AttachmentName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="EmailUniqueId" type="xs:long" />
      <xs:element minOccurs="0" name="Uri" nillable="true" type="xs:anyURI" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AttachmentDownloadUrlResult" nillable="true" type="tns:AttachmentDownloadUrlResult" />
  <xs:complexType name="EmailDownloadUrlResult">
    <xs:sequence>
      <xs:element minOccurs="0" name="EmailUniqueId" type="xs:long" />
      <xs:element minOccurs="0" name="Uri" nillable="true" type="xs:anyURI" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="EmailDownloadUrlResult" nillable="true" type="tns:EmailDownloadUrlResult" />
  <xs:complexType name="ArrayOfImapFolder">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ImapFolder" nillable="true" type="tns:ImapFolder" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfImapFolder" nillable="true" type="tns:ArrayOfImapFolder" />
  <xs:complexType name="ImapFolder">
    <xs:sequence>
      <xs:element minOccurs="0" name="ChildFolders" nillable="true" type="tns:ArrayOfImapFolder" />
      <xs:element minOccurs="0" name="CompletePath" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ImapFolder" nillable="true" type="tns:ImapFolder" />
  <xs:complexType name="SmtpUserInformation">
    <xs:sequence>
      <xs:element minOccurs="0" name="Host" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="HostPort" type="xs:int" />
      <xs:element minOccurs="0" name="IsSmtpAuthenticate" type="xs:boolean" />
      <xs:element minOccurs="0" name="Password" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Username" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SmtpUserInformation" nillable="true" type="tns:SmtpUserInformation" />
  <xs:complexType name="NewMailMessage">
    <xs:sequence>
      <xs:element minOccurs="0" name="Attachments" nillable="true" type="tns:ArrayOfAttachment" />
      <xs:element xmlns:q3="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="Bcc" nillable="true" type="q3:ArrayOfstring" />
      <xs:element minOccurs="0" name="Body" nillable="true" type="xs:string" />
      <xs:element xmlns:q4="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="Cc" nillable="true" type="q4:ArrayOfstring" />
      <xs:element minOccurs="0" name="Date" type="xs:dateTime" />
      <xs:element minOccurs="0" name="From" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IsHtml" type="xs:boolean" />
      <xs:element minOccurs="0" name="Sender" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Subject" nillable="true" type="xs:string" />
      <xs:element xmlns:q5="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="To" nillable="true" type="q5:ArrayOfstring" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="NewMailMessage" nillable="true" type="tns:NewMailMessage" />
  <xs:complexType name="ArrayOfAttachment">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Attachment" nillable="true" type="tns:Attachment" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAttachment" nillable="true" type="tns:ArrayOfAttachment" />
  <xs:complexType name="Attachment">
    <xs:sequence>
      <xs:element minOccurs="0" name="FileName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Size" type="xs:long" />
      <xs:element minOccurs="0" name="StoredFileName" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Attachment" nillable="true" type="tns:Attachment" />
  <xs:complexType name="AttachmentOnServer">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:Attachment">
        <xs:sequence />
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="AttachmentOnServer" nillable="true" type="tns:AttachmentOnServer" />
  <xs:complexType name="DraftMailMessage">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:NewMailMessage">
        <xs:sequence>
          <xs:element minOccurs="0" name="UniqueId" nillable="true" type="xs:long" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="DraftMailMessage" nillable="true" type="tns:DraftMailMessage" />
  <xs:complexType name="FlagMessageCompletedResult">
    <xs:sequence>
      <xs:element minOccurs="0" name="EmailId" type="xs:long" />
      <xs:element minOccurs="0" name="FolderCompletePath" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="FlagMessageCompletedResult" nillable="true" type="tns:FlagMessageCompletedResult" />
  <xs:complexType name="ArrayOfNewMailMessage">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="NewMailMessage" nillable="true" type="tns:NewMailMessage" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfNewMailMessage" nillable="true" type="tns:ArrayOfNewMailMessage" />
  <xs:complexType name="MailBody">
    <xs:sequence>
      <xs:element minOccurs="0" name="Attachments" nillable="true" type="tns:ArrayOfAttachment" />
      <xs:element xmlns:q6="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="Bcc" nillable="true" type="q6:ArrayOfstring" />
      <xs:element minOccurs="0" name="BodyHtmlText" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="BodyText" nillable="true" type="xs:string" />
      <xs:element xmlns:q7="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="Cc" nillable="true" type="q7:ArrayOfstring" />
      <xs:element minOccurs="0" name="Date" type="xs:dateTime" />
      <xs:element xmlns:q8="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="From" nillable="true" type="q8:ArrayOfstring" />
      <xs:element minOccurs="0" name="Importance" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MessageId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Priority" nillable="true" type="xs:string" />
      <xs:element xmlns:q9="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="ReplyTo" nillable="true" type="q9:ArrayOfstring" />
      <xs:element xmlns:q10="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="ResentBcc" nillable="true" type="q10:ArrayOfstring" />
      <xs:element xmlns:q11="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="ResentCc" nillable="true" type="q11:ArrayOfstring" />
      <xs:element minOccurs="0" name="Sender" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Subject" nillable="true" type="xs:string" />
      <xs:element xmlns:q12="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="To" nillable="true" type="q12:ArrayOfstring" />
      <xs:element minOccurs="0" name="UniqueId" type="xs:long" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MailBody" nillable="true" type="tns:MailBody" />
</xs:schema>